<!DOCTYPE html>
<html style="height: 100%;width: 100%; ">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
            <title>用户主界面</title>
        </head>
        <body style="height: 100%;width: 100%;margin-left: 0px;margin-top: 0px;">
            <script>
                var s=localStorage.getItem("stuff");
                // alert("localStorage中的数据");//必须要放在外面加载，因为我的那个判断left.html放在外面，放在外面的限制性
                // alert(s);
                sessionStorage.setItem("stuff",s);
                localStorage.clear();

                window.onbeforeunload=function(){
                    sessionStorage.clear();
                }
                window.onload=function (){

                    document.getElementById("bu_exit").onclick=function (){
                        sessionStorage.clear();
                        window.location="SignIn.html";
                    }
                }
                // alert("sessionStorage中的数据");
                // alert(sessionStorage.getItem("stuff"));
            </script>
            <div  style="width: 100%;height: 10%;border-style: solid;border-color: aqua; background-color: aquamarine;"  >
                <br>
                <span style="align-items: center;margin-left: 45%; ">用户主界面</span> <br>
                <input style="margin-left: 80%; background-color:  aqua;" type="button" name="" id="bu_exit" value="退出登录">

            </div>
            <div style=" float: left;width: 20%;height: 88%;">
                <iframe src="" scrolling="no" style="width: 100%;height: 100%;" name="left" id="left"></iframe>
                <script>
                    //alert('yuyuiyiuyuyu');
                    var left=document.getElementById("left");

                        var s=sessionStorage.getItem("stuff");
                        window.eval("var stuff="+s);
                    sessionStorage.setItem("item",stuff.staffno);
                       // alert(stuff.stationno);
                        if ("业务部主管"==stuff.stationno||"业务部经理"==stuff.stationno||"老板"==stuff.stationno){
                            left.src="Left_Approval.html";
                        }else{
                            left.src="Left_Stuff.html";
                        }


                </script>
            </div>
            <div style="float: left;width: 79.0%;height: 88%;border-style: solid;border-color: rgb(43, 46, 43);">
                <iframe scrolling="no"  src="" frameborder="0" name="right" style="width: 100%;height: 100%;"></iframe>
            </div>

        </body>
</html>
